﻿using System;

namespace VNet.VisiSuite.VisiBoard.Models
{
    public class ProductionPlanModel : BaseModel
    {
        private string _work_order;
        private int _productionPlanId;
        private int _productId;
        private DateTime _dueDate;
        private int _planned;
        private int _actual;
        private int _sortOrder;
        private bool _enabled;

        public string WorkOrder
        {
            get { return _work_order; }
            set
            {
                _work_order = value;
                OnPropertyChanged(_work_order);
            }
        }

        public int ProductionPlanId
        {
            get { return _productionPlanId; }
            set
            {
                _productionPlanId = value;
                OnPropertyChanged("ProductionPlanId");
            }
        }

        public int ProductId
        {
            get { return _productId; }
            set
            {
                _productId = value;
                OnPropertyChanged("ProductId");
            }
        }

        public DateTime DueDate
        {
            get { return _dueDate; }
            set
            {
                _dueDate = value;
                OnPropertyChanged("DueDate");
            }
        }

        public int Planned
        {
            get { return _planned; }
            set
            {
                _planned = value;
                OnPropertyChanged("Planned");
            }
        }

        public int Actual
        {
            get { return _actual; }
            set
            {
                _actual = value;
                OnPropertyChanged("Actual");
            }
        }

        public int SortOrder
        {
            get { return _sortOrder; }
            set
            {
                _sortOrder = value;
                OnPropertyChanged("SortOrder");
            }
        }

        public bool Enabled
        {
            get { return _enabled; }
            set
            {
                _enabled = value;
                OnPropertyChanged("Enabled");
            }
        }
    }
}